package skipass.command;

import skipass.CardStatSystem;
import skipass.container.Card;


public class CheckCardExists implements Command {

	private Card card;
	private CardStatSystem css;

	public CheckCardExists(Card card, CardStatSystem css) {
		this.card = card;
	}
	
	@Override
	public boolean execute() {					
		if(css.cardExists(card.getId()))
			return true;
		else return false;
	}
	
}